<template>
  <div>
    <el-table :data="processPlanList" stripe border class="user-table" style="width: 100%;"> 
      <el-table-column fixed type="index" label="*" sortable min-width="30" align="center"></el-table-column>
      <el-table-column prop="processNo" label="工序号" sortable  min-width="30" align="center"></el-table-column>
      <el-table-column prop="processName" label="工序名称" sortable min-width="80" align="center"></el-table-column>
      <el-table-column prop="processTime" label="工时" sortable min-width="80"></el-table-column>
      <el-table-column  label="工时" sortable align="center">
          <el-table-column  label="固定" sortable width="80" align="center">
          <template slot-scope="scope">
            <div class="content-rowspan">
              <div>{{scope.row.confirmWorkTime}}</div>
            </div>
          </template>
        </el-table-column>
        <el-table-column label="估工" sortable width="80" align="center">
          <template slot-scope="scope">
            <div class="content-rowspan">
              <div>{{scope.row.predictWorkTime}}</div>
            </div>
          </template>
        </el-table-column>
      </el-table-column>
      <el-table-column prop="processPrice" label="外包工序工时/面积/单独报价" sortable min-width="80"></el-table-column>
      <el-table-column prop="nums" label="件数" sortable width="60"></el-table-column>
      <el-table-column prop="priority" label="优先级" sortable width="60"></el-table-column>
      <el-table-column prop="planCompleteDate" label="计划完成日期" sortable min-width="100"  :formatter="timeFormatter"></el-table-column>
      <el-table-column prop="startTime" label="任务开始时间" sortable min-width="100"  :formatter="timeFormatter"></el-table-column>
      <el-table-column prop="creatorName" label="创建人" sortable width="100"></el-table-column>
      <el-table-column prop="createTime" label="创建时间" sortable width="110" :formatter="timeFormatter"></el-table-column>
      <el-table-column fixed="right" label="操作" align="center" min-width="80">
        <template slot-scope="scope">
           <slot  :row="scope.row"></slot>
        </template>
      </el-table-column>
      </el-table>
  </div>
</template>
<script>
import planApi from 'plugins/axios/planApi.js';
import baseApi from 'plugins/axios/baseApi.js';
export default {
  name: 'processPlanList29',
  props:{
    data:{
      type:Object
    }
  },
  data (){
    return {
      processPlanList:[]
    }
  },
  watch:{
  },
  created(){

  },
  methods:{
     /**时间格式化 */
    timeFormatter(row, column, cellValue, index){
      return cellValue?this.timestampToTime(cellValue,'yyyy-mm-dd'):'';
    },
    /**获取29工艺列表 */
    getProcessPlanList(){
      let self = this;
       planApi.planTaskDetailList1(self.data.id).then(res=>{
        self.processPlanList=res.content;
      })
    },
  }
}
</script>
<style lang="stylus" scoped>

</style>